﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WXYW.BLL;
using WXYW.DAL;

namespace WXYW
{
    public partial class ViewLogisticCompanyInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LogisiticCompanyService service = new LogisiticCompanyService();
                LogisticCompany company = service.GetLogisticCompanyByID(Convert.ToInt32(Request.QueryString["ID"]));

                companyNameLbl.Text = company.Name;
                relationLbl.Text = company.Relation;
                addressLbl.Text = company.Address;

                contactPerson1Lbl.Text = company.Contact1;
                phone1Lbl.Text = company.Phone1;
                mobilePhone1Lbl.Text = company.MobilePhone1;

                contactPerson2Lbl.Text = company.Contact2;
                phone2Lbl.Text = company.Phone2;
                mobilePhone2Lbl.Text = company.MobilePhone2;
            }
        }
    }
}